package com.example.appalumaj;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	public Button Aluminio;
	public Button Hierro;
	public Button Acero;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_main);

		Aluminio = (Button) findViewById(R.id.btnAluminio);
		Hierro = (Button) findViewById(R.id.btnHierro);
		Acero = (Button) findViewById(R.id.btnAcero);

		Aluminio.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
				Intent l = new Intent(MainActivity.this, Main2Activity.class);
				startActivity(l);
			}
		});

		Hierro.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
				Intent l2 = new Intent(MainActivity.this, Main3Activity.class);
				startActivity(l2);
			}
		});

		Acero.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
				Intent l3 = new Intent(MainActivity.this, Main4Activity.class);
				startActivity(l3);
			}
		});

	}

}
